import http from "../js/http.js"

//banner信息
export function bannerQuery(){
	return http({
		url: '/Api/Banner/Query',
	})
}

//文章详情
export function bannerInfo(data){
	return http({
		method: "GET",
		url: '/Api/Banner/Info',
		data
	})
}
//热门推荐
export function bookNominate(data){
	return http({
		url: '/Api/BookNominate/List/ForStudent',
		data
	})
}
//课外必读
export function getExt(data){
	return http({
		url: '/Api/ExtracurricularRequired/Query',
		data
	})
}
//优秀读后感
export function queryExcellent(data){
	return http({
		url: '/Api/BookReview/QueryExcellent',
		data
	})
}
//搜索获取图书列表
export function queryAbstract(data){
	return http({
		url: '/EvaluatingUserApi/Book/List',
		data,
		without: true
	})
}

//图书详情
export function bookQuery(data){
	return http({
		method: 'GET',
		url: '/EvaluatingUserApi/Book/Query',
		data
	})
}


//自测随机获取题目
export function selfTesting(data){
	return http({
		url: '/EvaluatingUserApi/Task/SelfTesting/Random',
		data
	})
}
//阅读力测试随机获取题目
export function selfTestingExp(data){
	return http({
		url: '/Api/TaskReadingLiteracy/Testing',
		data
	})
}
//查询评分
export function queryRater(data){
	return http({
		url: '/Api/Book/QueryRater',
		data
	})
}
//收藏
export function collectionBook(data){
	return http({
		url: '/Api/BookCollection/Add',
		data,
		without: true
	})
}
//收藏状态
export function isMyCollection(data){
	return http({
		url: '/Api/BookCollection/IsMyCollection',
		data,
		widthout: true
	})
}
//取消收藏
export function deleteCollection(data){
	return http({
		url: '/Api/BookCollection/Delete',
		data,
		widthout: true
	})
}

//图书相关的读后感列表
export function bookReviewsByBookid(data){
	return http({
		url: '/Api/BookReview/List/ByBookId',
		data,
		without: true
	})
}

//读后感详情
export function bookReviewQuery(data){
	return http({
		url: '/Api/BookReview/Query',
		data
	})
}
//评测评语
export function testRemark(data){
	return http({
		url: '/api/InitTest/GetEvaluation',
		data
	})
}
//评论列表
export function commentList(data){
	return http({
		url: '/Api/Comment/List',
		data,
		without: true
	})
}
//回复列表
export function queryReplyList(data){
	return http({
		url: '/Api/Comment/QueryReplyList',
		data
	})
}
//回复
export function addReply(data){
	return http({
		url: '/Api/Comment/AddReply',
		data
	})
}
//评论
export function addComment(data){
	return http({
		url: '/Api/Comment/Add',
		data
	})
}
//点赞
export function likeAdd(data){
	return http({
		url: '/Api/Like/Add',
		data
	})
}
//取消点赞
export function likeRemove(data){
	return http({
		url: '/Api/Like/Remove',
		data
	})
}
//获取年段
export function gradeQuery(){
	return http({
		url: '/Api/Grade/Query',
		method: 'GET'
	})
}
//赚取能力点
export function earnCapacityPoint(data){
	return http({
		url: '/Api/CapacityPoint/Earn/InitialTesting',
		data
	})
}
//提交初测
export function initialTesting(data){
	return http({
		url: '/Api/Student/InitialTesting',
		data
	})
}
//获取初测题组
export function initialQueGroup(data){
	return http({
		url: '/api/InitTest/Query/Student',
		data
	})
}
//获取初测题目
export function initialQue(data){
	return http({
		url: '/Api/InitQue/Query',
		data
	})
}//获取初测雷达图
export function capacityPointM2(data){
	return http({
		url: '/Api/Statistics/CapacityPoint/M2',
		data
	})
}
//初测结果
export function evaluationResult(data){
	return http({
		url: '/Api/Task/QueryTaskResult/InitialTesting',
		data
	})
}

//初测testid获取
export function getMyAchieve(){
	return http({
		url: '/api/InitTest/GetMyAchieve'
	})
}
//删除自己的评论
export function deleteComment(data){
	return http({
		url: '/Api/Comment/Delete',
		data
	})
}

//修改自己的评论
export function updateComment(data){
	return http({
		url: '/Api/Comment/Update',
		data
	})
}

